home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / gchess40.lha / gnuchess4.0p62 / src / Makefile < prev    next >
Makefile  |  1993-06-24  |  16KB  |  423 lines

  1. #
  2. # Makefile for GNU Chess
  3. #
  4. # Copyright (c) 1992 Free Software Foundation
  5. #
  6. # This file is part of GNU CHESS.
  7. #
  8. # GNU Chess is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2, or (at your option)
  11. # any later version.
  12. #
  13. # GNU Chess is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with GNU Chess; see the file COPYING.  If not, write to
  20. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21. #
  22.  
  23. #
  24. # gnuchess  is a curses-based chess.
  25. # gnuchessn is a fancy-display-curses-based chess.
  26. # gnuchessr is a plain dumb-terminal chess (but with full variation output)
  27. # gnuchessc is suitable for chesstool use (mimics /usr/games/chess output)
  28. # gnuchessx is the xchess based chess.
  29. #
  30.  
  31. # The version number of this GNU and Xboard release
  32. VERS=    4.0
  33. XVERS = 2.0
  34.  
  35. # Relevant file areas.
  36. DIST=    ../README ../README.lang ../doc ../misc ../src ../test
  37.  
  38. # size of book to make
  39. # listed below are the book options and the size of the resulting book
  40. #
  41. # default is small
  42. # set BOOKTYPE to the book you want
  43. #
  44. #huge.book.data        1,450K
  45. #big.book.data          540K
  46. #med.book.data          240K
  47. #small.book.data      144K
  48. #tiny.book.data           78K
  49.  
  50. BOOKTYPE=small.book.data
  51.  
  52. # Distribution directory
  53. DISTDIR= .
  54.  
  55. # Programs being distributed
  56. PROGS=gnuchess-$(VERS) xboard-$(XVERS)
  57. #PROGS=gnuchess-$(VERS)
  58.  
  59. LIBS = -lm 
  60.  
  61. # Change these to something less transitory, like /usr/games, and then
  62. # compile. Ask your system admin / unix guru to put gnuchess.{hash,lang,book}
  63. # in $(LIBDIR).
  64. # Where the binaries live.
  65. #BINDIR= /tmp_mnt/home/fsf/cracraft/Ch
  66. #BINDIR= /udir/mann/bin/alpha
  67. #BINDIR= /usr/local/bin
  68. BINDIR= .
  69.  
  70. # Where language description, our book, and the persistent hash live.
  71. #LIBDIR= /usr/local/lib
  72. LIBDIR= .
  73. #LIBDIR= /udir/mann/lib/alpha
  74.  
  75. # Display routines.
  76. LCURSES=-lcurses -ltermcap
  77.  
  78. #compile options for gnuchess
  79. # -DQUIETBACKGROUND don't print post information in background ( easy OFF)
  80. # -DNOMEMSET if your machine does not support memset
  81. # -DNOMATERIAL don't call it a draw when no pawns and both sides < rook
  82. # -DNODYNALPHA don't dynamically adjust alpha
  83. # -DHISTORY use history killer hueristic 
  84. # -DKILLT use killt killer hueristic 
  85. # -DHASGETTIMEOFDAY use gettimeofday for more accurate timing
  86. # -DOLDTIME use old ply time estimating function
  87. # -DCLIENT create client version for use with ICS
  88. # -DOLDXBOARD don't generate underpromote moves
  89. # -DGNU3 don't generate underpromote moves
  90. # -DLONG64 if you have 64bit longs
  91. # -DSYSV   if you are using SYSV
  92. # -DCACHE  Cache static evaluations 
  93. # -DE4OPENING always open e4 if white and respond to e4 with e5 if black
  94. # -DQUIETBOOKGEN Don't print errors while loading a book or generating a binbook
  95. # -DSEMIQUIETBOOKGEN Print less verbose errors while reading book or generating binbook
  96. # -DGDX  use random file based book
  97. # -DNULLMOVE include null move heuristic
  98. # some debug options
  99. # -DDEBUG8 dump board,movelist,input move to /tmp/DEBUG if illegal move
  100. # -DDEBUG9 dump move list from test command
  101. # -DDEBUG10 dump board and move after search before !easy begins
  102. # -DDEBUG11 dump board when the move is output
  103. # -DDEBUG12 dump boards between moves
  104. # -DDEBUG13 dump search control information for each move to /tmp/DEBUG
  105. # -DDEBUG33 dump book moves as read from book
  106. # -DDEBUG40 include extra values of variables for debugging  in game list
  107. # -DDEBUG41 dump post output to /tmp/DEBUG
  108. # the rest of the debug options are tied to the debuglevel command
  109. # -DDEBUG -DDEBUG4 set up code for debuglevel command
  110. #          debuglevel
  111. #               1 always force evaluation in evaluate
  112. #               4 print move list after search
  113. #               8 print move list after book before search
  114. #              16 print move list after each ply of search
  115. #              32 print adds to transposition table
  116. #              64 print returns from transposition table lookups
  117. #          256 print search tree as it is generated
  118. #          512 debug trace
  119. #         1024 interactive tree print
  120. #            debug? p#  where # is no. of plys to print from top of tree (default all plys)
  121. #                   XXXX moves specifying branch of tree to print (default all branches)
  122. #                   return terminates input
  123. #         2048 non-interactive trace print
  124. # gnufour ICS client
  125. #OPT= -DCACHE -DCLIENT -DGDX -DGNU3 -DHASGETTIMEOFDAY -DHISTORY -DNULLMOVE  -DQUIETBACKGROUND -DSEMIQUIETBOOKGEN 
  126. # normal
  127. OPT= -DCACHE -DGDX -DHASGETTIMEOFDAY -DHISTORY -DNULLMOVE  -DOLDTIME -DQUIETBACKGROUND -DSEMIQUIETBOOKGEN 
  128. # The hashfile is a record of positions seen. It is used by
  129. # GNU Chess to avoid making the same mistakes, a form of learning.
  130. HASH=    -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\"
  131.  
  132. # The "book" is a record of the first few moves, for playing good
  133. # moves easily and quickly, saving time, and irritating the human
  134. # opponent.
  135. #BOOK=    -DBOOK=\"$(LIBDIR)/gnuchess.book\"
  136. BOOK=    
  137. BINBOOK = -DBINBOOK=\"$(LIBDIR)/gnuchess.data\"
  138.  
  139. # The language file describes capabilities of the program. Perhaps
  140. # it is useful for non-English speaking countries and customizing
  141. # for their convenience and chess happiness.
  142. LANGF= -DLANGFILE=\"$(LIBDIR)/gnuchess.lang\"
  143.  
  144. # The compiler used for compiling this software.
  145. # Use this for a plain C compiler 
  146. #CC= cc $(OPT)
  147. # Use this for DEC's ANSI C compiler on Ultrix
  148. #CC= c89 $(OPT)
  149. # Use this if you are lucky enough to have GNU CC.
  150. CC=    gcc -W  $(OPT)
  151. #CC=    cc $(OPT) # HPUX
  152. #CC=    /contrib/system/bin/gcc -W $(OPT)
  153.  
  154. # Miscellaneous CFLAGS. Uncomment the one you need and comment 
  155. # the other.
  156. #CFLAGS=  -O2 -p -Dinline=""     -traditional-cpp
  157. #CFLAGS= -O4 -Qpath .  # SunOS cc using unprotoize
  158. #CFLAGS= -O4 # Sun acc
  159. #CFLAGS= -g -traditional-cpp  # debug
  160. #CFLAGS= -O2 # DEC ANSI C (c89) on Ultrix.
  161. #CFLAGS= +O3 -Aa -D_HPUX_SOURCE -DSYSV # HPUX cc 
  162. #CFLAGS= -O   -finline-functions -fstrength-reduce -D__mips -D__LANGUAGE_C # gnu cc 1.40 on DS5000
  163. #CFLAGS= -O   -finline-functions -fstrength-reduce  # gnu cc 1.40 on others
  164. #CFLAGS= -O2 -funroll-loops -D__mips -D__LANGUAGE_C # gnu cc 2.00 on DS5000
  165. #CFLAGS= -O2 -D__alpha -D__LANGUAGE_C # gnu cc 2.00 on Flamingo
  166. CFLAGS=  -g -O2 -funroll-loops -traditional-cpp  # gnu cc  2.00 on SunOS
  167. #CFLAGS= -O2 -funroll-loops  # gnu cc  2.00 on others
  168.  
  169. all : gnuchess gnuchessr gnuchessn gnuchessx gnuchessc postprint gnuan game bincheckr checkgame
  170.  
  171. gnuchess: mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o uxdsp.o
  172.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -o gnuchess mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o uxdsp.o $(LCURSES) $(LIBS)
  173.  
  174. gnuan: mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o gnuan.o
  175.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -o gnuan mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o gnuan.o $(LIBS)
  176.  
  177. gnuchessc: mainC.o bookC.o genmovesC.o ataks.o utilC.o evalC.o init.o searchC.o dspcomC.o nondspC.o
  178.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -o gnuchessc mainC.o bookC.o genmovesC.o ataks.o utilC.o evalC.o init.o searchC.o dspcomC.o nondspC.o $(LIBS)
  179.  
  180. Dgnuchessr: mainDR.o bookN.o genmovesN.o ataks.o utilDR.o evalDR.o init.o searchDR.o dspcomDR.o nondspDR.o
  181.     $(CC)  -DDEBUG  -DDEBUG4 $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -o gnuchessr mainDR.o bookN.o genmovesN.o ataks.o utilDR.o evalDR.o init.o searchDR.o dspcomDR.o nondspDR.o $(LIBS) $(LIBS)
  182.  
  183. gnuchessx: mainX.o bookX.o genmovesX.o ataks.o utilX.o evalX.o init.o searchX.o dspcomX.o nondspX.o
  184.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -o gnuchessx mainX.o bookX.o genmovesX.o ataks.o utilX.o evalX.o init.o searchX.o dspcomX.o nondspX.o $(LIBS)
  185.  
  186. gnuchessr: mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomR.o nondspR.o
  187.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -o gnuchessr mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomR.o nondspR.o $(LIBS)
  188.  
  189. gnuchessn: mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o nuxdsp.o
  190.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -o gnuchessn mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o nuxdsp.o $(LCURSES) $(LIBS)
  191.  
  192. game: game.c gnuchess.h
  193.     $(CC) $(CFLAGS) -o game game.c
  194.     
  195. postprint: postprint.o
  196.     $(CC) $(CFLAGS) $(HASH) -o postprint postprint.o
  197.     
  198. bincheckr: bincheckr.o
  199.     $(CC) $(CFLAGS) -o bincheckr bincheckr.o
  200.     
  201. checkgame: checkgame.o
  202.     $(CC) $(CFLAGS) -o checkgame checkgame.o
  203.  
  204. gnuan.o: gnuan.c gnuchess.h version.h
  205.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) $(BINBOOK) -c gnuan.c
  206.  
  207. mainN.o: main.c gnuchess.h version.h
  208.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) $(BINBOOK) -c main.c
  209.     mv main.o mainN.o
  210. mainC.o: main.c gnuchess.h version.h
  211.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) $(BINBOOK) -DNONDSP -DCHESSTOOL \
  212.         -c main.c
  213.     mv main.o mainC.o
  214. mainX.o: main.c gnuchess.h version.h
  215.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) $(BINBOOK) -DXBOARD  -c main.c
  216.     mv main.o mainX.o
  217. mainDR.o: main.c gnuchess.h version.h
  218.     $(CC)  -DDEBUG -DDEBUG4 $(CFLAGS) $(HASH) $(LANGF) $(BOOK) $(BINBOOK) \
  219.         -c main.c
  220.     mv main.o mainDR.o
  221.  
  222. genmovesN.o: genmoves.c gnuchess.h version.h
  223.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -c genmoves.c
  224.     mv genmoves.o genmovesN.o
  225. genmovesC.o: genmoves.c gnuchess.h version.h
  226.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DNONDSP -DCHESSTOOL \
  227.         -c genmoves.c 
  228.     mv genmoves.o genmovesC.o
  229. genmovesX.o: genmoves.c gnuchess.h version.h
  230.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DXBOARD \
  231.         -c genmoves.c
  232.     mv genmoves.o  genmovesX.o
  233.  
  234. bookN.o: book.c gnuchess.h version.h ataks.h
  235.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) $(BINBOOK) -c book.c 
  236.     mv book.o bookN.o
  237. bookC.o: book.c gnuchess.h version.h ataks.h
  238.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DNONDSP -DCHESSTOOL \
  239.           $(BINBOOK) \
  240.         -c book.c 
  241.     mv book.o bookC.o
  242. bookX.o: book.c gnuchess.h version.h ataks.h
  243.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DXBOARD  $(BINBOOK) \
  244.         -c book.c
  245.     mv book.o  bookX.o
  246.  
  247. ataks.o: ataks.h ataks.c gnuchess.h version.h
  248.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -c ataks.c
  249.  
  250. utilN.o: util.c gnuchess.h version.h
  251.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -c util.c
  252.     mv util.o utilN.o
  253.  
  254. utilX.o: util.c gnuchess.h version.h
  255.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DBAREBONES \
  256.          -c util.c
  257.     mv util.o  utilX.o
  258.  
  259. utilC.o: util.c gnuchess.h version.h
  260.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DBAREBONES \
  261.          -c util.c
  262.     mv util.o  utilC.o
  263.  
  264. evalC.o: eval.c gnuchess.h version.h
  265.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DBAREBONES -c eval.c
  266.     mv eval.o evalC.o
  267.  
  268. evalX.o: eval.c gnuchess.h version.h
  269.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DBAREBONES -c eval.c
  270.     mv eval.o evalX.o
  271.  
  272. evalN.o: eval.c gnuchess.h version.h
  273.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -c eval.c
  274.     mv eval.o evalN.o
  275.  
  276. evalDR.o: eval.c gnuchess.h version.h
  277.     $(CC)  -DDEBUG4 -DDEBUG $(CFLAGS) $(HASH) $(LANGF) $(BOOK) \
  278.         -c eval.c 
  279.     mv eval.o evalDR.o
  280. utilDR.o: util.c gnuchess.h version.h
  281.     $(CC)  -DDEBUG4 -DDEBUG $(CFLAGS) $(HASH) $(LANGF) $(BOOK) \
  282.         -c util.c 
  283.     mv util.o utilDR.o
  284.  
  285. init.o: init.c gnuchess.h version.h
  286.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -c init.c
  287.  
  288. searchN.o: search.c gnuchess.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h
  289.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -c search.c
  290.     mv search.o searchN.o
  291. searchC.o: search.c gnuchess.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h
  292.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DNONDSP -DCHESSTOOL \
  293.         -c search.c 
  294.     mv search.o searchC.o
  295. searchX.o: search.c gnuchess.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h
  296.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DXBOARD -DBAREBONES\
  297.         -c search.c 
  298.     mv search.o searchX.o
  299. searchDR.o: search.c gnuchess.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h
  300.     $(CC)  -DDEBUG4 -DDEBUG $(CFLAGS) $(HASH) $(LANGF) $(BOOK) \
  301.         -c search.c 
  302.     mv search.o searchDR.o
  303.  
  304. uxdsp.o: uxdsp.c gnuchess.h version.h
  305.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -c uxdsp.c
  306.  
  307. nuxdsp.o: nuxdsp.c gnuchess.h version.h
  308.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -c nuxdsp.c
  309.  
  310. nondspC.o: nondsp.c gnuchess.h version.h
  311.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DNONDSP -DCHESSTOOL \
  312.         -c nondsp.c 
  313.     mv nondsp.o nondspC.o
  314. nondspX.o: nondsp.c gnuchess.h version.h
  315.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DNONDSP -DXBOARD -DBAREBONES\
  316.         -c nondsp.c 
  317.     mv nondsp.o nondspX.o
  318. nondspR.o: nondsp.c gnuchess.h version.h
  319.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DNONDSP \
  320.         -c nondsp.c 
  321.     mv nondsp.o nondspR.o
  322. nondspDR.o: nondsp.c gnuchess.h version.h
  323.     $(CC)  -DDEBUG4 -DDEBUG $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DNONDSP \
  324.          -c nondsp.c 
  325.     mv nondsp.o nondspDR.o
  326.  
  327. dspcomN.o: dspcom.c gnuchess.h version.h
  328.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -c dspcom.c
  329.     mv dspcom.o dspcomN.o
  330. dspcomC.o: dspcom.c gnuchess.h version.h
  331.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DNONDSP -DCHESSTOOL \
  332.         -c dspcom.c 
  333.     mv dspcom.o dspcomC.o
  334. dspcomX.o: dspcom.c gnuchess.h version.h
  335.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DNONDSP -DXBOARD \
  336.         -c dspcom.c 
  337.     mv dspcom.o dspcomX.o
  338. dspcomR.o: dspcom.c gnuchess.h version.h
  339.     $(CC) $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DNONDSP \
  340.         -c dspcom.c 
  341.     mv dspcom.o dspcomR.o
  342. dspcomDR.o: dspcom.c gnuchess.h version.h
  343.     $(CC)  -DDEBUG -DDEBUG4 $(CFLAGS) $(HASH) $(LANGF) $(BOOK) -DNONDSP \
  344.         -c dspcom.c 
  345.     mv dspcom.o dspcomDR.o
  346.  
  347. postprint.o: postprint.c gnuchess.h version.h
  348.     $(CC) $(CFLAGS) $(HASH) -c postprint.c
  349.  
  350. distribution:
  351.     -patchlevel=`cat $(DISTDIR)/gnuchess-$(VERS)/src/version.h|grep patchlevel|sed -e 's/[^0-9]//g'` ;\
  352.     echo "GNU patchlevel is $$patchlevel" ;\
  353.     xpatchlevel=`cat $(DISTDIR)/xboard-$(XVERS)/patchlevel.h|sed -e "s/#define PATCHLEVEL //"` ;\
  354.     cd $(DISTDIR) ;\
  355.     rm -f gnuchess.tar.$(VERS).Z* gnuchess.tar.$(VERS).Z.uu* ;\
  356.     tar cf - $(PROGS) | compress > $(DISTDIR)/gnuchess-$(VERS).pl$$patchlevel.tar.Z ;\
  357.     uuencode gnuchess-$(VERS).pl$$patchlevel.tar.Z gnuchess-$(VERS).pl$$patchlevel.tar.Z > gnuchess-$(VERS).pl$$patchlevel.tar.Z.uu ;\
  358.     rm -f x?? ;\
  359.     split -2500 gnuchess-$(VERS).pl$$patchlevel.tar.Z.uu ;\
  360.     for i in x??; do \
  361.       mv $$i $(DISTDIR)/GNU_Chess_$$i; \
  362.     done
  363.  
  364. huge.book.data:
  365.     -rm ./gnuchess.data
  366.     echo 3 0>test;echo quit >>test
  367.     zcat ../misc/gnuchess.bk1.Z     > /tmp/t
  368.     cat test| ./gnuchessr -b /tmp/t  -B ./gnuchess.data -S 320000 -P 24
  369.     rm test /tmp/t
  370.  
  371. big.book.data:
  372.     -rm ./gnuchess.data
  373.     echo 3 0>test;echo quit >>test
  374.     zcat ../misc/gnuchess.bk1.Z     > /tmp/t
  375.     cat test| ./gnuchessr -b /tmp/t  -B ./gnuchess.data -S 45000 -P 16
  376.     rm test /tmp/t
  377.  
  378. med.book.data:
  379.     -rm ./gnuchess.data
  380.     echo 3 0>test;echo quit >>test
  381.     zcat ../misc/gnuchess.bk1.Z     > /tmp/t
  382.     cat test| ./gnuchessr -b /tmp/t  -B ./gnuchess.data -S 20000 -P 12
  383.     rm test /tmp/t
  384.  
  385. small.book.data:
  386.     -rm ./gnuchess.data
  387.     echo 3 0>test;echo quit >>test
  388.     zcat ../misc/gnuchess.bk1.Z     > /tmp/t
  389.     cat test| ./gnuchessr -b /tmp/t  -B ./gnuchess.data -S 12000 -P 10
  390.     rm test /tmp/t
  391.  
  392. tiny.book.data:
  393.     -rm ./gnuchess.data
  394.     echo 3 0>test;echo quit >>test
  395.     zcat ../misc/gnuchess.bk1.Z     > /tmp/t
  396.     cat test| ./gnuchessr -b /tmp/t  -B ./gnuchess.data -S 9000 -P 8
  397.     rm test /tmp/t
  398.  
  399. install: install1 $(BOOKTYPE)
  400.     -cp ./gnuchess.data $(LIBDIR)/gnuchess.data
  401.  
  402.  
  403. install1: 
  404.     -cp gnuchessx $(BINDIR)/gnuchessx
  405.     -cp gnuchessc $(BINDIR)/gnuchessc
  406.     -cp gnuchessr $(BINDIR)/gnuchessr
  407.     -cp gnuchessn $(BINDIR)/gnuchessn
  408.     -cp postprint $(BINDIR)/postprint
  409.     -cp gnuan $(BINDIR)/gnuan
  410.     -cp gnuchess $(BINDIR)/gnuchess
  411.     -cp bincheckr $(BINDIR)/bincheckr
  412.     -cp checkgame $(BINDIR)/checkgame
  413.     -cp ../misc/gnuchess.lang $(LIBDIR)/gnuchess.lang
  414.  
  415. test:    gnuchessr
  416.     cat ../test/testall|gnuchessr > test.out 2>&1
  417.  
  418. clean:
  419.     -rm -f gnuchessx gnuchessc gnuchess gnuchessr gnuchessn gnuchessd postprint gnuan bincheckr checkgame game
  420.     -echo $(DISTDIR)
  421.     -rm -f $(DISTDIR)/gnuchess-4.0/misc/gnuchess.data
  422.     -find $(DISTDIR) \( -name '*.o' -o -name '*~' -o -name 'CL*' -o -name 'PATCH*' -o -name '#*#' -o -name '%*%' -o -name '*orig' \) -exec rm -f {} \;
  423.